package oc.tm.sg.core.loadbalance.support;

public class LoadServer<T> {
	
	/**
	 * 服务对象
	 */
	private T server;
	/**
	 * 权值
	 */
	private int weight;
	
	public LoadServer() {
	}
	
	public LoadServer(T server, int weight) {
		this.server = server;
		this.weight = weight;
	}

	public T getServer() {
		return server;
	}
	public void setServer(T server) {
		this.server = server;
	}
	public int getWeight() {
		return weight;
	}
	public void setWeight(int weight) {
		this.weight = weight;
	}

}
